package com.jmp.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
@Builder
public class GoodsDetailResponse {
    @ApiModelProperty("商品ID")
    private Integer goodsId;
    @ApiModelProperty("商品视频")
    private String videoUrl;
    @ApiModelProperty("商品图片,多张逗号分割")
    private String goodsPhotos;
    @ApiModelProperty("商品名称")
    private String goodsName;
    @ApiModelProperty("商品详情")
    private String goodsDetails;
    @ApiModelProperty("是否可交易:1可交易")
    private Integer ispayment;
    @ApiModelProperty("价格")
    private String price;
    @ApiModelProperty("是否可编辑、主推：0否 1是")
    private Integer editAble;
    @ApiModelProperty("是否可编辑：0否 1是")
    private Integer editFlag;
    @ApiModelProperty("主推：0否 1是")
    private Integer mainPush;
    @ApiModelProperty(value = "规格", dataType = "GoodsDetailResponse.Spec")
    private List<Spec> goodSpecModelList;

    @ApiModelProperty("是否已代理：0无代理权限 1已代理 2未代理")
    private Integer goodsSelected;
    @ApiModelProperty("是否已收藏：0无 1已收藏")
    private Integer collectFlag;
    @ApiModelProperty("VR地址")
    private String qjVrUrl;
    @ApiModelProperty("通话-号码")
    private String kfTel;
    @ApiModelProperty("咨询-用户ID")
    private String kfChatId;
    @ApiModelProperty("咨询-用户头像")
    private String kfImg;
    @ApiModelProperty("当前名片ID")
    private Integer cardId;

    private Integer companyId;
    @ApiModelProperty("企业-名称")
    private String companyName;
    @ApiModelProperty("企业-logo")
    private String companyLogo;
    @ApiModelProperty("企业等级")
    private Integer companyLevel;
    @ApiModelProperty("企业-中科公信：0无 1有")
    private Integer hasZkgx;
    @ApiModelProperty("企业-区域")
    private String companyAddrArea;
    @ApiModelProperty("企业-街名")
    private String companyAddrStreet;
    @ApiModelProperty("企业-门号")
    private String companyAddrNo;
    @ApiModelProperty("企业全景")
    private String companyVrUrl;


    @ApiModel("GoodsDetailResponse.Spec")
    @Data
    @Builder
    public static class Spec {
        private Integer specId;
        private String specName;
        private Integer specNum;
        private BigDecimal price;
        @ApiModelProperty(value = "规格", dataType = "GoodsDetailResponse.Spec")
        private List<Spec> goodSpecModelList;
    }
}
